correct vertical centering check