flagfactory simplify, loop n times