correcting various minor erros