added unpause method