use the correct wait