latest working code on 08th May 2013