added scanmultiple func