minor change to use list intead of list reference
deleting swap file