forgot to add brackets to second pattern of result_repeat