added missing main parameter