add some pseudocode