Remove reference to variable d