minor changes to correct erros