added check for zero cross sections