changed function to find dimensionality of conducting channels