must get getter at top-down recursive approach to dp