my code from java