added linear dependent method