correct error desing in models