references generate begin