doing some arithmatic