fixed coalescing for general cases