correct link rate gathering code