updated the get method