added allocate/free methods to the region