remove foreach
fix makeArray undefined