change code style in package model