correcting variables