got linear testing working (but need to test)