memoizing sid s and lids
memoizing sid s and lids