implement lambda capture resolver