correcting a few errors