added target obtaining, need testing