Change memory to integer resprensatation