fixed some wrong variable names