initial scratch pad code