added more code to handle lt gt an leq