fixed use of models