preparation for doc