replaced rank_code with tagd::code for consistency
replaced rank_code with tagd::code for consistency