removed useless global variables, added one more useful global variable in spadic_link_status