add rename variables functionality