work as a constructor parameter