change class variable to instance variable