changed variable names to make more sense and fixed typos