a few errors fixed