included new total module count function