removed code causing errors in regions