add items to ignore
ref of dynamic programming