finished handle_get function