remove pseudocode blocks, code actually compiles now