buffer: capture constructor function