set metadata of underlying method to new method's closure