finishing off the bucket functions