updated doc & example