removes duplicate code
removes commented out code
rewrites scope to enhance readibility