rename file logic changed