memoBy of inferOnTheSide must memo by the scope