updated for region clearing