minor errors fixed