added get and set tube functions, changed variables