stable detection code in temptest