update pseudocode design

update pseudocode design