move helper methods to module methods