add bucketing tasks method and test