made flag work