added new ClosestValidPointClass