added type doc