fixed some local variable names