manage greater than and less than