sleep code debug repeat