@edward jin do the detection