Rob thought his mother had planned the suprise, but he was barking up the wrong tree. His brother had planned it all by himself. (idiom)