check if greater than operator will reduce code requirement