using java stuff