added renFile() method