implementing pause