you have to set both
`self.p, p = V.shape[0]`