change the creation of the variable key