memoizing -> memorising