updated helper method in module