changed modify() to public.