detector stuff