could probably move this up before the `delete`