doc is wrong type