re-implemented #NEAR operator. now working