Could you rewrite for statement to forEach method.