adjusting memo logic