logger
more logging in returnSum
more logging in returnSum