update region declaration and add logging