if you're having trouble sleeping, a fun thing to do is create people. just make them up in your head and look at them.
sometimes you can just make one person and really get it right: from cells to muscles to organs to skeleton to skin to hair to bad clothing. and sometimes you might create a mass of humans, anxiety-inducing and undulating enthusiastically to boring music. sometimes it's just a group of friends that look like they should be enemies but they have this secret bond holding them like tinker toys, and only you can see the rods between because you put them there.
put your people in situations and see what happens. make them ugly or cute or stupid or troubled or swimming through tranquil oceans. make them dance and jerk in the city street and imagine that one of those rascals opened the cap on the fire hydrant. imagine an infernal july sun and a heavy-set, pasty female with just a little tuft of foot-long blonde hair poking from atop a meticulously shaved cranium. imagine she is dancing alone, while her friends look away. she has sort of bulging fish eyes and her nose is so small and so round. her lips unbelievably pink, like two naked crayons. imagine she is wearing a tank top and you can see her armpit hairs and they are coarser and darker than that floppy tuft.
when you wake up and it's later in the day and you don't want to sleep, get a notebook. remember those people you made up and draw them. bring them closer to you. to us.
it's less lonely now, right?