Local and global coordinate system