adding variables with components