fix model function

misstyping