updates to calculation scripts