added rename functionality