removed memorize helper