removed unnecessary private vars