changed the order that Link's private variables are defined to remove
compiler warnings