made fn public.