works reasonably, slightly shifted lines