fixed minor bug
tested bilinear filter