join instead of for-loop