cleanup transefer to java 8