added #50
added documentation for #50