added set up of private variables