add callback function to get method