merge functions of tag from 2.78