Yes, you read that headline right. According to a new study, using your phone before you go to bed can disrupt your sleep schedule and prevent you from getting a good night’s sleep. Specifically, the study found that those who use smartphones or tablets before bed went to bed later and had a later sleep onset than those who didn’t.

The study also found that those who used their phone or tablet before going to sleep had lower levels of the sleep-regulating hormone, melatonin. Lastly, the study found that electronic device usage before bed reduced the period of rapid eye movement (REM) sleep, a vital component in our sleep patterns. So, if you’re having trouble sleeping, try putting your phone or tablet away before heading to bed.