rectified some spacing issues and changed variable names