adding sleep period when getting data