loop differently for 7.2 compatibility