modify pipe weight calculation