added old version of wait 1 sec