decoder: consider the three values error tuple