add doc and return data