rewrite calcFootprint to call calc_footprint