fixed a constructor