add: detect method