set cxy and cx to zero after accumulating