sweep line, where is wrong