update doc and remove un-needed code