sped up processing of enrichment scores

removed an embedded function in a for loop that was significantly
slowing down the speed of processing.