make errors an array