changing the variable name to record from models