added access modifier to all methods