doc warn fix
refactor