fixed sawtooth.c also