dynamically selecting, which attribute to evaluate