added editing and writing tags