use fancy for loop