some typos in comment corrected