getting the wait to happen so the command prompt is after the output