add debug output ans further sharpen filter on blocks