code sample referenced the wrong version of this method