added method for adding errors
added method for getting errors