make reference height selection generic