readjust control logic
move numIterations from class definition to function
add staleness
fix props