weighted logistic regression: problem done