added draft of centerVertical
renamed functions