generalized the script to other module comparisons