warning only relevant to old java version