change weight_t to double