refactored paper.dirName to paper.name