add inline modifier to mst::W() to allow compiler make the function inline.