add the actual rename function

not finished though