model constructor changed