changed sleep to rake task