remove setTimeout because safari (iphone) does not support it