added Flatten base