make static into data member