put points into array properly