fix refence error

line was not defined in the function context. using line instead of x as function parameter
0.1.2