added pseudocode from doc