some refactor for java