removed unused root variable
reverted code formatting