changed small and big to local and global