implemented template inline renaming