delete istance, fix warnings