fix get point A and B to use filter