added closest x comparison