fix model for handling params