updates users and global