changed to java class