merged two for-loops