fixed x&y shifting problem, working on line test case