move member variable to local