first stage of adding tagging