changed error list to object