fixing class var to instance var