transform to number before push to arrayPoints