fixed the obvious errors