determinant for flask