updated IRLS, it know works!!!