updated doc and example