mountlist to function