fix tagN_info generation func