defined undefined variables

defined some undefined variables to fix compile error with recess