more java conversion