could probably just do roots[i]==(File)itemId