fix scratch syntax issues