refactor module file