calculating the determinant 8189540