array of error messages fix