added private modifiers to methods and properties