deleted some redundant code and improved some code formatting