added some supporting calcs