made a constructor public