rename method to isGreaterThan and move assignment