add member functions to unit