pass in array to console instead of string.