added objFlatten