-add memeory for cpp