changed >= logic to >