removed check decrementation, it resulted in incorrect results