using thstack instead of clone+add