added doc, fixed type