dont use map if there are no paths