add weight to params