changed method of vertical positioning