small changes to pointpoly