Removed some inverses by replacing them with solve
Tried expanding xa with replicates