Error in contract update migration

Hi, I am having a problem with the migration of a contract. I am using openzeppelin proxies. I added a function I needed to the contract, and when I try to migrate it, I get this error... previously I have been able to update the contract a couple of times.

this is my migration:

const KargainV01 = artifacts.require('KargainV01');
const { deployProxy } = require('@openzeppelin/truffle-upgrades')

module.exports = async function (deployer, network, accounts) {
const [kargainAdmin] = accounts
const initialPlatformCommissionPercent = 3 // %
const deployedKargain = await deployProxy(KargainV01, [kargainAdmin, initialPlatformCommissionPercent], { deployer })

console.log('Kargain Contract: ' + deployedKargain.address)

const version = await deployedKargain.version()
console.log('Kargain version: ' + version)
const commission = await deployedKargain.platformCommissionPercent()
console.log('Kargain commission: ' + commission)


And I get this when I try run migration..

Starting migrations...

Network name: 'testnet'
Network id: 97
Block gas limit: 29882814 (0x1c7f9be)


Replacing 'KargainV01'

transaction hash: 0xdf52b939295a20635b7587a68718f4ecb5e1258eb870b596de498142a6c53fd1

Error: *** Deployment Failed ***

"KargainV01" -- Cannot create instance of KargainV01; no code at address 0xA12eCbA36D949cD22794358c6DeD1FC9E4557e79.

at /home/damian/Documents/work/kargain-nft/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
at process._tickCallback (internal/process/next_tick.js:68:7)

Truffle v5.4.0 (core: 5.4.0)
Node v10.16.0

any suggestions?