updated snippet/xml for better understanding