moved things around
got the related document working