rename file correctly