changed to N-sum PR with dangling page support