flag in constructor