got a resample as add function finished