working patch for overflow instructions and extract value