cleaned up de2_link code