fix bug and add new doc