generates correct point cloud