use err instead of message