output for by subject also