change errors to list from array.