added horizontal component to add function