nan -> zero
examples of selection function