made some minor changes.