add malloc assignment