rewrite of vertical centering