the arg of det() is ref