updated detect