added argIsOk fund, but it needs debugging