replace > with >=
debugging statements and more changes