update model file & code