java functions uncommented