fixed type + cleaned docs