fixed memory type addition