modify tensor functions for using kernel
include the r in docstring to dela with \