added function: pauseAll