jaqpot3 with some changes Aug 2013