tweaked miklist function