solve edge cases for negative returns or no companies