return detection adapter