Thank you guys. It worked when I replaced flags with eflags ,but what's the difference between them?