commented out wait loop