changed greater than logic

fixes #4