adding variables to starting fragment of equation