iterating objects only once now