better static errors