working simulation and stubbed determinant custom instructions