a few minor changes made