10/13/2014 working version codes