model has function fix