dont let pos count to infinity