better optimization for raise, multiply, divide