renamed variable
fixed errors