simplify assigning first path if its the only one