fixed seeing multiple tags function