change the code function of pointdata