adding functions for Francis weighting from Andre Punt