removed unused variable
refactored parsePTModule()