add malloc and stack