some improvements looping objects