first working version of collinear task