moved error to model