fixed bugs in dpSize, add selections