remove single line block statement with return
add tests for pause() and resume()