PL: minor
NF: product flatten mapper to flatten multiple dimensions