The problem of temp declaration is solved.