added error catching to explodeByCol