fix up math sample