adding variables, setting up for ternary