add weightingfunction implementation(walker have to take care of it)