reimplemented tensormaps