delete lines functionality