minor editing, errors fixed