coarse K integration working