minor erros fixed