fix warning
doc
refactor #prepare