added bar ctor