renderFile() method added