Avoid homework right before bedtime. Studying or doing written homework right before bedtime does not allow the necessary time to relax before falling asleep.