better management of functions vs private vars