using the memoizer to wrap dots inside stars in a sanitary fashion