updated core pseudos code
updated core pseudos code