removed unused variable
start of hierarchical resource locking. doesn't compile, coding not complete