insert points to an array