add character number and update init function