added volatile example