privatize functions that should be private