simple refactoring
remove tmpId