add code for memlcd