changed public to private