trim unneeded file