renamed sleep function in order not to confuse with sleep() Unix/Linux function