finished unlink function of  link_bil.py