flag simulation