pause and resume methods added