integrated procBlock into code, compiles, need to test