make sure button_presses is always defined, remove unused count