trying to remove chain sampling problem