finish pseudocode