check for looping attr before reading