made some function public