method to get