guessing algo now returns the weights too