few errors fixed