upgraded to AbstractTensors v0.7 style