use detect