started delete code and date formatting