deleted the extra temp assignment