added public modifier to methods