added extra values for printing
works with scala + java