functional again

starting to make inverse and determinant