removed unnecessary functions from Java file.