changed instance variables access modifier to private