removed redundant sleep