simplify Subject labeling using anonymous function instead of named