created shared partial for errors