added function to remove old namelist