implemented pause
implemented pause