product model function fix