pass FileSource by reference