filter the square