implement memo search