file retrieving fixed