changed member variables access modifier to private