replaced for..in in areAll with a regular for loop