add comments to the wait loop