added sleeping behavior