promote for-loop efficiency