changing all status and merging tags function