added sleep timer