correct problem 14. need to use a long