refactor member variables