nightmares

Acoustic
Ever since I started taking my prescribed depression pills, my sleeping patterns have been on and off. One night I would go to bed at 3:50 A.M and other times I'd be going to bed at 6:00 P.M  and it's seriously messing me up. I've been so tired one minute and the other Is be exhausted from them. 
How can I deal with it?