changed organization again and the pause function