fixed errors/mis-typing in code