removed unused variables compiler was complaining about.