moved variable to Class level