add function o ffinding line in barklem dataset