should also check if columns are null or (col != null & col size)