Also. Doing exercises before bed is bad. You can do it 4 hours before at least. Another thing is the blue light from screen eletronics. Use some filter when the sun set or just cut it the usage during nights. I use f.lux on my computer. It's a good start