working on the wait loop