update for new java