putting the correct variable in