mehod deleteLines