simplify function reference constructor