updated to include accounts when reduce=false