add method get function