avoid unnecessary Function1 object allocation