extend linear algebra, change spin/mass