file pulling function complete