attr loop can no longer run infinitely