wait for 500 ms, not 500 sec