removed duplicated code in docs.