add rename logic