enumerate using block