works with tensormath again