-added sleeping behavior