working on a colinear function that doesnt work yet