add a sleep call