made corrections based on Nikhil's suggestions