add target to query tree