trying to fix MPU code