fixed typo in variable names