delete code updated