use resume to exit the block