change sleep to ms