added a get function