adding sleep before deleting