make region out of code