fixed up the flag form a bit better