made some functions public