added determinant + test ref