changed type checking in getTargetList()