changed wait to pause