add mem stream to compute percentage