implementing clear tags