added better column error handling