initial scratch code