fix some stupid mistakes
useful exception
deleteLine and changeLine functions