fixed wrong variable names