corrected bug with arithmetic ops