refactor module var