gross script to align vertically, need a better solution