needs to happen before delete, otherwise we don't have an ID
make sure we have an array here