fixed missed variable names