added pseudocode for searches