good quantize with endings? but tmp event bug