added some arithmetic functions