moved sigma to be a constructor parameter