corrected the variables