fixed duration problem and now not using tainID any longer