made flags code tagged