volatile and global variables