working through variables