refactor columns to join from an array