added missing sleep