fixinf functions in model