changed a forin block to enumerateUsingBlock