updating the main for more deletes