working version
updated doc