SORTED BY TAG: detection maintenance