reversed clustering and bucket creation steps