use vector objects for input data, keep z coordinate too