making some functions private that do not need to be public