correction to variable parsing