fix not initializing temp