added data model, weighting input