added the getTargetData method