added java threed