changed the way vertical centering is handled