changes reference from constant to variable