changed 1 to a variable.