dirnames is unused