added ERR diagram