adding code for region features