instantiates model if none is passed