check targettype