trying an alternative way to get a determinant