removed old commented code
reset nodes instead of directly setting INVALID status