figured out flag issue