get globalId automatically