added delete and totw to engine