refactor variable names for more clarity (also, 'errored' is not a word)