implemented pause