referencing variables instead of string for plot