adds case for going to root