Changed invA to inv