extract to transformResult