added ability to check the sum total from the user. need to refactor