This paper presents an improved filter method based on the lately proposed method of IFPGF<sup></sup> which is peer group-based. The IFPGF method improves the trade-off between computational efficiency and filtering quality of previous peer group-based methods and gains a good filtering quality at relatively low density of noisy pixels. But when the noisy density goes high(≥20%), the IFPGF method cannot work well. So in this paper, we propose an improved method to fix the drawbacks on filtering the salt-and-pepper impulsive noise. Experimental results suggest that the proposed method is able to outperform the classical vector filters and the recent proposed p eer group-based filters, including IFPGF.