removing warnings "assigned but unused variable"
removing warnings "mismatched indentations"