created a get function