fix malloc in loop
fix list add