working version for pcd cogsub + after traking on a cluster