remove unneeded local var