cont back calculation for MD working