updated pin and creating region