change text to integer the temManager