`x` and `y` are not in the `kwds`. You can remove these lines