remname file correctly