Removed unnecessary code from scratchwork