added hacked sample code