flush for doc