correct generate mask and compare Point