add a function to compute GE/GM