added define variable functionality