convert one for-loop to comprehension