added additional arithmetic code