added optional variable