corrected some errors in the variables