use main class variables with with scope