output the returned values to console