refactoring; modified command Jrename