recompiled for new matrix elements