added functionality of F-Neighbor