adding two new errors into the error dictionary