making the hide method public.