clean up code style in module-pattern idenfitication