flag initialize