update some comment and fix variable number error