need to erode, code is breaking when trying to erode lines