remove extraneous retrieve_tags function