adding sleep and offset