updated with better iteration of FSList