adding possibility to iterate through errors