reverted code back to starting point