add some model function