code for http://srinivas.gs