fixed foreach spacing and indentation