flags are now properly placed and shown