changes to main class for better security classes var become protected