added centerVertically capability