errors to array