old main deletion