fix coalescing, but it does not work in an elegant way