modify fd file