fixed gaussian reduction, fixed some graphics glitches