shifting back to Java