make err more uniform