fixed term2str deprecated function