removed unneeded temp var