some small errors fixed