changed names of some variables.