removed compliation errors for GuiPart on java8