removing some of the obvious errors