add erros definition