added weighted model