sample code for Ness