making sure middle positions are actually correct coordinates