fixed the typos, and removed printf