added sleep mode