rm unnecessary code
fix documentation