starting dividing local and global states