fixed line removing
TODO: fix collisions after line removing