think and write to ready for sleep