add settag function.