modified some model and add inventory