remove unused variable in outer fold to remove warning