faster calc of xx,xy