added addHorizontal and addVertical