tweaked custom taxonomy function slightly