attempts at a pause function