change static variable to non-static