slightly speed up: use kx,ky rather than Point