- speedup by declaring x_pt and so on const