added math for iso calculation