I also had trouble sleeping before. But, I was able to cope up with my sleeping problems when I develop my routine. I reduced my caffeine intake, I exercise every day, I eat healthy foods, and I don't stay up late every night. After doing those things, I get back on track.