added tag cleaning to mark tags function