add weight and ip