fixed namespace of global pt and pt2