changes sleep to seconds