adds pair and last 11 logic to generate method