key set to variable now like originally