better code for greater-or-equal problem