add boolean variable to control processing resources