customize lib memory and puzzle