missing flatten added